{% extends 'base.html' %}

{% block title %}
{{data.table.name}} 详情
{% endblock %}

{% block content %}


<div class="card mt-3">
    <h1> 📑 {{data.table.name}} </h1>
    <div class="card-header">表信息</div>
    <div class="card-body">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>列名</th>
                <th>字段名</th>
                <th>数据类型</th>
                <th>长度</th>
                <th>必填</th>
                <th>默认值</th>
                <th>注释</th>
            </tr>
            </thead>
            <tbody>
            <!-- table->column -->
            {% for col in data.columns %}
            <tr>
                <td>{{ col.name }}</td>
                <td>{{ col.code }}</td>
                <td>{{ col.data_type }}</td>
                <td>{{ col.length }}</td>
                <td>{{ col.mandatory }}</td>
                <td>{{ col.default }}</td>
                <td>{{ col.comment }}</td>

            </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
</div>
{% endblock %}